<?php
if (isset($_SESSION["email"])) {
    ?>
<table class="topMenuStructure" cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr class="topMenuLogoRow">
            <td colspan="5"
                style="padding-top:0px;">
                    <img src="images/Registry_topbar.png"
                         alt="Registry_topbar"
                         style="border:0px;" /></td>
        </tr>
        <tr class="topMenuButtonsRow">
            <td class="topMenuButton"
                style="border-left:1px solid #FFFFFF;"
                onclick="goTo('userAccountHome.php');"
                onmouseover="activateTopMenuButton('menu1')"
                onmouseout="deactivateTopMenuButton('menu1')"
                id="menu1">
                Home
            </td>
            <td class="topMenuButton"
                onclick="goTo('userManageProfile.php');"
                onmouseover="activateTopMenuButton('menu2')"
                onmouseout="deactivateTopMenuButton('menu2')"
                id="menu2">
                My Profile
            </td>
            <td class="topMenuButton"
                onclick="goTo('userManageAccount.php');"
                onmouseover="activateTopMenuButton('menu3')"
                onmouseout="deactivateTopMenuButton('menu3')"
                id="menu3">
                My Account
            </td>
            <td class="topMenuButton"
                onclick="goTo('searchConsultant.php');"
                onmouseover="activateTopMenuButton('menu4')"
                onmouseout="deactivateTopMenuButton('menu4')"
                id="menu4">
                Search  Public Registry
            </td>
            <td style="border-bottom:1px solid #FFFFFF;border-right:1px solid #FFFFFF;padding-right:10px;"
                id="menu6">
                <div id="userLogoutArea" style="font-size:11px;text-align:right;font-family:Arial;">
                    <span style="font-size:10px;">You are currently logged in as:</span>
                    <br />
                        <?php echo $_SESSION["userFullName"]; ?>
                    &nbsp;|&nbsp;&nbsp;<a href="index.php" class="topMenuLink">Logout</a>
                </div>
            </td>
        </tr>
        <tr class="topMenuFooterRow">
            <td colspan="5"></td>
        </tr>
    </tbody>
</table>
<?php
} else {
    ?>
<table class="topMenuStructure" cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr class="topMenuLogoRow">
            <td colspan="5" style="padding-top:0px;">
                <img src="images/Registry_topbar.png"
                     alt="Registry_topbar"
                     style="border:0px;"/></td>
        </tr>
        <tr class="topMenuButtonsRow">
            <td id="menu1"></td>
            <td id="menu2"></td>
            <td id="menu3"></td>
            <td id="menu4"></td>
            <td id="menu6"></td>
        </tr>
        <tr class="topMenuFooterRow">
            <td colspan="5"></td>
        </tr>
    </tbody>
</table>
<?php
}
?>